package com.ocom.payconfig.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.common.entity.payconfig.EntityVoucherType;
import com.ocom.common.request.payconfig.NewVoucherTypeRequest;
import com.ocom.common.request.payconfig.UpdateVoucherTypeRequest;

import java.util.List;

public interface VoucherTypeService extends IService<EntityVoucherType> {
    List<EntityVoucherType> selectVoucherTypeList(Long comId, String attributeStr, String consTypeStr);

    Boolean removeVoucherType(Long comId, Long voucherTypeId);

    EntityVoucherType selectVoucherType(Long comId, NewVoucherTypeRequest newVoucherTypeRequest);

    Boolean newVoucherType(Long comId, NewVoucherTypeRequest newVoucherTypeRequest);

    EntityVoucherType selectUVoucherType(Long comId, UpdateVoucherTypeRequest updateVoucherTypeRequest);

    Boolean updateVoucherType(Long comId, UpdateVoucherTypeRequest updateVoucherTypeRequest);
}
